package com.cq.teacher.service.impl;

import java.util.List;

import com.cq.teacher.domain.TeacherDiscipline;
import com.cq.teacher.domain.TeacherSchool;
import com.cq.teacher.domain.TeacherType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherManagementMapper;
import com.cq.teacher.domain.TeacherManagement;
import com.cq.teacher.service.ITeacherManagementService;

/**
 * 老师管理Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherManagementServiceImpl implements ITeacherManagementService 
{
    @Autowired
    private TeacherManagementMapper teacherManagementMapper;
    @Autowired
    private TeacherSchoolServiceImpl teacherSchoolService;
    @Autowired
    private TeacherDisciplineServiceImpl teacherDisciplineService;
    @Autowired
    private TeacherTypeServiceImpl teacherTypeService;
    /**
     * 查询老师管理
     * 
     * @param id 老师管理主键
     * @return 老师管理
     */
    @Override
    public TeacherManagement selectTeacherManagementById(Long id)
    {
        return teacherManagementMapper.selectTeacherManagementById(id);
    }

    /**
     * 查询老师管理列表
     * 
     * @param teacherManagement 老师管理
     * @return 老师管理
     */
    @Override
    public List<TeacherManagement> selectTeacherManagementList(TeacherManagement teacherManagement)
    {
        return teacherManagementMapper.selectTeacherManagementList(teacherManagement);
    }

    /**
     * 新增老师管理
     * 
     * @param teacherManagement 老师管理
     * @return 结果
     */
    @Override
    public int insertTeacherManagement(TeacherManagement teacherManagement)
    {
        return teacherManagementMapper.insertTeacherManagement(teacherManagement);
    }

    /**
     * 修改老师管理
     * 
     * @param teacherManagement 老师管理
     * @return 结果
     */
    @Override
    public int updateTeacherManagement(TeacherManagement teacherManagement)
    {
        return teacherManagementMapper.updateTeacherManagement(teacherManagement);
    }

    /**
     * 批量删除老师管理
     * 
     * @param ids 需要删除的老师管理主键
     * @return 结果
     */
    @Override
    public int deleteTeacherManagementByIds(Long[] ids)
    {
        return teacherManagementMapper.deleteTeacherManagementByIds(ids);
    }

    /**
     * 删除老师管理信息
     * 
     * @param id 老师管理主键
     * @return 结果
     */
    @Override
    public int deleteTeacherManagementById(Long id)
    {
        return teacherManagementMapper.deleteTeacherManagementById(id);
    }

    @Override
    public List<TeacherManagement> selectTeacherSuperiorList(TeacherManagement teacherManagement) {
        return teacherManagementMapper.selectTeacherSuperiorList(teacherManagement);
    }
}
